package com.web44.ssm.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Title: HomeController
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/18 13:52
 */
@Controller
public class HomeController {


    @GetMapping("home")
    public  String homeWeb() {
        System.out.println(1/0);
        return "home";

    }

    @GetMapping("index")
    public  String indexWeb() {
        // System.out.println(1/0);

        return "index";

    }

    @GetMapping("news")
    public  String newsWeb() {
        // System.out.println(1/0);
        return "news";

    }
}
